<div class="oe_top">
	<div class="oe_topcon">
		<div class="name">欢迎来到  {$config.sitename} </div>
		<if condition="$login.status eq '0' ">
		<div class="login_1">
			<a href="javascript:;" f="pop_jdlogin" class="a_1">登录</a>
			<a href="{:U('passport/reg')}" class="a_2">注册</a>
		</div>
		<div class="other_1">
			其它登录
			<if  condition=" $config.qqlogin.flag eq '1' "> <a class="a_1" href='{$oefile}?c=passport&a=auth&mod=qq' title="QQ登录"> </a> </if>
			<if condition="$config.sinalogin.flag eq '1' "><a class="a_2" href='{$oefile}?c=passport&a=auth&mod=sina' title="新浪登录"> </a></if>
			<if condition="$config.weixin_scanlogin eq  '1' "><a class="a_3" href='{$oefile}?c=passport&a=auth&mod=scanwx' title="微信登录"></a></if>
		</div>
		<else/>
		<div class="logined">
			　{$login.info.username} {$login.group.levelimg}   <span>({$login.group.groupname})</span>
			<i>|</i><a href="{$urlpath}index.php?m=user">个人中心</a>
			<i>|</i> <a href="{routeurl module='passport' action='logout'}">退出登录</a>
		</div>

		</if>


		<div class="usertool drop">

			<if condition="$login.status eq '0' ">
				<a href="javascript:;" f="pop_jdlogin" class="a_1"><i></i>升级会员</a>
			<else/>
				<a href="{$urlpath}index.php?m=user&c=vip" class="a_1"><i></i>升级会员</a>
			</if>

			<dl class="cin">
				<dt><i></i>扫码交友</dt>
				<dd class="sub">
					<ul>
						<li>
							<img src="{$urlpath}{$config.weixinqr}" />
							<p><i class="ico_1"></i>微信交友</p>
						</li>
						<li style="margin-left:30px;">
							<img src="{$urlpath}{$config.mobileqr}" />
							<p><i class="ico_2"></i>手机交友</p>
						</li>
					</ul>
					<div class="clear"></div>
				</dd>
			</dl>
		</div>
		<div class="clear"></div>
	</div>
</div>


<div class="oe_menu nav0">
	<div class="oe_menucon">
		<div class="logo">
			<a href="{$config.siteurl}"><img class="img" alt="{$config.sitename}" title="{$page_title}" src="{$urlpath}{$config.logo}" /></a><img class="line" src="__THEME__/images/line.png"/>
		</div>
		<div class="text">
			<p class="p_1">实名婚恋</p>
			<p class="p_2">诚信认证联盟开创者！</p>
		</div>
		<div class="area drop">
			<dl class="cin">
				<dt>
		  <span>
		    <if condition=" empty($city['cityname']) ">
		    全国
			<else/>
			   {$city.cityname}
			</if>
		  </span>
					<em></em>
				</dt>
				<dd class="sub">
					<ul>




						<volist name="citytype_list" id="citytype" >
							<li>
								<span>{$citytype}</span>

								<EP:select table="city" where="citytype=$key and cityname!='' "  order="orders asc"  id="vocity"  >

									<a href="{:U('city',array('cid'=>$vocity['cityid']) )}">{$vocity.cityname}</a>

								</EP:select>

								<div class="clear"></div>
							</li>

						</volist>
					</ul>
					<div class="btn"> <a href="{routeurl module='city'}">全部城市</a> </div>
				</dd>
			</dl>
		</div>
		<div class="oe_mn">
			<ul>
				<li><a href="{$urlpath}index.php?m=user">个人中心</a></li>
				<li<if condition=" $menu_id eq  'user' "> class='current'</if>><a href="{:U('User')}">会员</a></li>
				<li <if condition=" $menu_id eq  'party' "> class='current'</if>><a href="{:U('Party')}">活动</a></li>
				<li <if condition=" $menu_id eq  'marry' "> class='current'</if>><a href="{:U('Marry')}">征婚</a><i></i></li>

			</ul>
		</div>
		<div class="clear"></div>
	</div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		//是头部的高度加头部与nav导航之间的距离
		var topMain=10;
		var nav=$(".nav0");
		$(window).scroll(function(){
			if ($(window).scrollTop()>topMain){
				//如果滚动条顶部的距离大于topMain则就nav导航就添加类.nav_scroll，否则就移除
				nav.addClass("current").removeClass("nav0");
			}else{
				nav.removeClass("current").addClass("nav0");
			}
		});
	})
</script>